.class final Lnet/tsapps/topdeals/bn;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lnet/tsapps/topdeals/DetailActitivty;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/DetailActitivty;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/bn;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 5

    iget-object v0, p0, Lnet/tsapps/topdeals/bn;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v0}, Lnet/tsapps/topdeals/DetailActitivty;->m(Lnet/tsapps/topdeals/DetailActitivty;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    :try_start_0
    iget-object v0, p0, Lnet/tsapps/topdeals/bn;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v0}, Lnet/tsapps/topdeals/DetailActitivty;->e(Lnet/tsapps/topdeals/DetailActitivty;)Lnet/tsapps/topdeals/h/a;

    move-result-object v2

    iget-object v0, p0, Lnet/tsapps/topdeals/bn;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v0}, Lnet/tsapps/topdeals/DetailActitivty;->m(Lnet/tsapps/topdeals/DetailActitivty;)Ljava/util/ArrayList;

    move-result-object v0

    iget-object v3, p0, Lnet/tsapps/topdeals/bn;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v3}, Lnet/tsapps/topdeals/DetailActitivty;->m(Lnet/tsapps/topdeals/DetailActitivty;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v3, v0, Lnet/tsapps/topdeals/objects/Deal;->a:J

    invoke-virtual {v2, v3, v4}, Lnet/tsapps/topdeals/h/a;->e(J)Ljava/util/List;

    move-result-object v0

    iget-object v2, p0, Lnet/tsapps/topdeals/bn;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v2}, Lnet/tsapps/topdeals/DetailActitivty;->m(Lnet/tsapps/topdeals/DetailActitivty;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
    :try_end_0
    .catch Lnet/tsapps/topdeals/g/a; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    iget-object v0, p0, Lnet/tsapps/topdeals/bn;->a:Lnet/tsapps/topdeals/DetailActitivty;

    new-instance v2, Lnet/tsapps/topdeals/f;

    invoke-direct {v2, p0, v1}, Lnet/tsapps/topdeals/f;-><init>(Lnet/tsapps/topdeals/bn;I)V

    invoke-virtual {v0, v2}, Lnet/tsapps/topdeals/DetailActitivty;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void

    :catch_0
    move-exception v0

    iget-object v2, p0, Lnet/tsapps/topdeals/bn;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v2, v0}, Lnet/tsapps/topdeals/DetailActitivty;->a(Lnet/tsapps/topdeals/DetailActitivty;Lnet/tsapps/topdeals/g/a;)V

    goto :goto_0
.end method
